﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
    public class SendMsgRequest
    {
        public String UserName { get; set; }
        public String TableID { get; set; }
        public String Message { get; set; }

        public SendMsgBIRequest FromDto()
        {
            SendMsgBIRequest request = new SendMsgBIRequest();
            request.Message = Message;
            request.TableID = TableID;
            request.UserName = UserName;
            return request;
        }

        public List<string> Log()
        {
            List<string> result = new List<string>();
            result.Add("Method: Sending message - Request");
            result.Add("Request by: " + UserName);
            result.Add("Table ID: " + TableID);
            result.Add("Message: " + Message);
            return result;
        }
    }
}
